package zuoye;

import java.util.Random;

public class zuoye9 {
public static void main(String[] args) {
	Random r=new Random();
	int[][] arrB={{1,2,3},{4,5,6,7},{8,9,10}};
	
	for(int i=0;i<arrB.length;i++){
		
		int num1=r.nextInt(arrB.length);
		int [] temp1=arrB[i];
		arrB[i]=arrB[num1];
		arrB[num1]=temp1;

		
		for(int j=0;j<arrB[i].length;j++){
			
			int num=r.nextInt(arrB[i].length);
			int temp=arrB[i][j];
			arrB[i][j]=arrB[i][num];
			arrB[i][num]=temp;
		}
	}
	for(int i=0;i<arrB.length;i++){
		for(int j=0;j<arrB[i].length;j++){
		System.out.print(arrB[i][j]+" ");
		}
		
	}
}
}
